
<%@ include file="/common/taglibs.jsp"%>
<!--分页查询共用的页面-->
<%@ include file="/common/common.jsp"%>
<%@ page language="java" pageEncoding="UTF-8"%>

<link rel="stylesheet" type="text/css" href="<%=ApplicationPath%>/js/ztree/css/metroStyle/metroStyle.css"" />
<style>
/*浮动定位*/
#div-col-1 {
    background-color: white;
    width: 400px;
    float: left;
}

#div-col-2 {
    background-color: white;
    margin-left: 402px;
}

#div-c-2 {
    background-color: yellow;
    width: 100%;
    height: 400px;
    clear: both;
}

</style>

<script type="text/javascript" src="<%=jsPath%>/jquery/jquery.timers.js"></script><!--定时器-->
<script type="text/javascript" src="<%=jsPath%>/ztree/jquery.ztree.all.min.js"></script>
<script>

function onDepTreeClick(node,checked)
{	
	var depId = node.id;
	var url = globalConfig.webPath + '/alarmConfig/viewAlarmConfigByDepId.action?depId='+depId;
	$('#alarmConfigFrame').attr('src',url);
}


 

$().ready(function() {
	

	 $("#cbCheckAllAlarm").click(function() {
                $('input[name="alarmEnable"]').attr("checked",this.checked);
				//$(".paramInput").attr("disabled", this.checked == false);
      });
	   $("#cbCheckAllSound").click(function() {
                $('input[name="alarmSoundEnable"]').attr("checked",this.checked);
      });

	   $("#cbCheckAllPopup").click(function() {
                $('input[name="alarmPopupEnable"]').attr("checked",this.checked);
      });
	    $("#cbCheckAllStatistic").click(function() {
                $('input[name="alarmStatisticEnable"]').attr("checked",this.checked);
      });

	  var setting = {
			data: {
				simpleData: {
					enable: false
				}
			},
			callback: {
				onclick: onDepTreeClick
			},
			view: {
				nameIsHTML:true
				//addHoverDom: me.addHoverDom,
				//removeHoverDom: me.removeHoverDom
			}
		};
	 var treeUrl = globalConfig.webPath + '/dep/menu.action?treeType=organization';
	 var treeManager = $("#depTree");
	 treeManager.tree({lines:true,url:treeUrl,onClick:onDepTreeClick});
	 treeManager.tree('collapseAll');


});
</script>
 <BODY>

	<div id="alarmConfigLayout" class="easyui-layout" data-options="fit:true">				    
		      <div data-options="region:'west'" style="width:350px">
			      <ul id="depTree"></ul>
			  </div>
		<div data-options="region:'center',border:true">
			<iframe id="alarmConfigFrame" scrolling="auto" frameborder="0"  src="" style="width:100%;height:99%;"></iframe>
		</div>
	</div>
 </BODY>
</HTML>
